mmc: fix to assign to correct clock value when clock is enabling
authorJaehoon Chung <[email protected]>
Tue, 23 Jan 2018 05:04:30 +0000 (14:04 +0900)
committerJaehoon Chung <[email protected]>
Wed, 24 Jan 2018 07:08:27 +0000 (16:08 +0900)
commitc0fafe64a5a8fbbd48c4d3bed730f45dfa6d85b5
treefbc5d62799f6af1273f957ddeab69397da884500
parentf35cdb713521f9b192c6df946921d295827c0e9c
mmc: fix to assign to correct clock value when clock is enabling

When clock is enabling, it's assigned to 0 as mmc->clock.
Then it can't initialize any card.
Fix to assign to correct clock value as mmc->cfg->f_min or f_max.

Fixes: 9546eb92cb6 ("mmc: fix the wrong disabling clock")
Signed-off-by: Jaehoon Chung <[email protected]>
Tested-by: Guillaume GARDET <[email protected]>
Tested-by: Anand Moon <[email protected]>
Tested-by: Stephen Warren <[email protected]>
drivers/mmc/mmc.c